<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>编辑课程</title>
    <script src="/lay-excel/jquery-3.2.1.min.js"></script>
    <link rel="stylesheet" href="/lay-excel/layui/src/css/layui.css">
    <script src="/lay-excel/layui/src/layui.js"></script>
    <link rel="stylesheet" href="/teacher/css/TeaEditCourse.css">
</head>
<body>
<div class="layui-container">
    <div class="layui-row">
        <form id="formId" class="layui-form">
            <!-- 选中的课程ID -->
            <input id="courseId" type="hidden" name="courseId">
            <table border="1">
                <tr>
                    <th class="th" colspan="8">编辑课程信息</th>
                </tr>
                <tr>
                    <td class="td1">课程名称：</td>
                    <td colspan="7">
                        <input type="text" class="layui-input" name="courseName" id="courseName">
                    </td>
                </tr>
                <tr>
                    <td class="td1">上传时间：</td>
                    <td colspan="2">
                        <input type="text" class="layui-input"  name="createDate" readonly= "true" id="createDate">
                    </td>
                    <td class="td1">上传人：</td>
                    <td colspan="4">
                        <input type="text" class="layui-input"  name="createName" readonly= "true" id="createName">
                    </td>
                </tr>
                <tr>
                    <td class="td1">课程售价：</td>
                    <td>
                        <input type="text" class="layui-input" name="courseNprice" id="courseNprice">
                        <!-- 课程原售价 -->
                        <input id="coursePrice" type="hidden" name="coursePrice">
                    </td>
                    <td class="td1">课程关键字：</td>
                    <td>
                        <input type="text" class="layui-input" name="coursePrimary" id="coursePrimary">
                    </td>
                    <td>
                        <img src="/img/icon3.gif" id="setcoursePrimary">
                    </td>
                    <td class="td1">课程分类：</td>
                    <td>
                        <input type="text" class="layui-input" name="className" id="className">
                        <!-- 选中的分类ID -->
                        <input id="classId" type="hidden" name="classId">
                    </td>
                    <td>
                        <img src="/img/icon3.gif" id="setcourseCatory">
                    </td>
                </tr>
                <tr>
                    <td class="td1">点赞量：</td>
                    <td>
                        <input type="text" class="layui-input" name="likeNum" readonly= "true" id="likeNum">
                    </td>
                    <td class="td1">收藏量：</td>
                    <td colspan="2">
                        <input type="text" class="layui-input" name="collectNum" readonly= "true" id="collectNum">
                    </td>
                    <td class="td1">评论量：</td>
                    <td colspan="2">
                        <input type="text" class="layui-input"  name="commentNum" readonly= "true" id="commentNum">
                    </td>
                </tr>
                <tr>
                    <td class="td1">课程介绍：</td>
                    <td colspan="7">
                        <textarea class="textarea1 layui-textarea" name="courseIntro" id="courseIntro"></textarea>
                    </td>
                </tr>
                <tr>
                    <td colspan="8" class="td2">
                        <span><i class="layui-icon layui-icon-upload"></i>课程封面图</span>
                    </td>
                </tr>
                <tr>
                    <td class="td3">预览图：</td>
                    <td colspan="7" class="td4">
                        <div>
                            <img src="" id="img">
                            <!-- 上传的图片名称 -->
                            <input id="url" type="hidden" name="url">
                            <button type="button" class="layui-btn" id="setimgbut">上传图片</button>
                        </div>
                    </td>
                </tr>
            </table>
        </form>
        <div id="btnDiv">
            <button class="layui-btn layui-btn-primary" id="cancelBtn">取消</button>
            <button class="layui-btn" id="courseBtn" layui-submit>确定</button>
        </div>
    </div>
</div>
<script src="/teacher/js/TeaEditCourse.js"></script>
</body>
</html>